package com.xiaomaoguai.jdk.function;

import java.util.function.Function;

public class Test1 {

	public static void main(String[] args) {
		modifyValue(10, val -> val + 20);
	}

	public static void modifyValue(int valueToOperated, Function<Integer, Integer> function) {
		int newValue = function.apply(valueToOperated);
		System.out.println(newValue);
	}

}
